package org.ithang.application.transfer.service;

import java.util.List;
import java.util.Map;
import org.ithang.application.transfer.mapper.TransferMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;
import org.ithang.tools.model.Pager;
import org.ithang.tools.database.ModelDao;
import org.ithang.application.transfer.bean.Transfer;

/**
 * 转账记录 服务
 * @author zyt
 *
 */
@Service
public class TransferService extends ModelDao<Transfer>{

    @Autowired
    private TransferMapper transferMapper;

    private Logger logger = Logger.getLogger(TransferService.class);
    
    public void add(Transfer transfer){
        transferMapper.add(transfer);
    }
    
    public Transfer get(Integer id){
        return transferMapper.get(id);
    }
    
    public int delete(Integer id){
        return transferMapper.delete(id);
    }
    
    public int batchDelete(String[] ids){
    	return transferMapper.batchDelete(ids);
    }
    
    public List<Transfer> list(Integer... ids){
    	return transferMapper.list(ids);
    }
    
    public List<Transfer> page(Pager<Transfer> page){
    	return transferMapper.page(page);
    }
    
    public List<Transfer> query(Map<String,Object> conditions){
    	return transferMapper.query(conditions);
    }
    
    public int update(Transfer transfer){
    	return transferMapper.update(transfer);
    }
    
    
}